package com.wanxi.util;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @Author LiuYuRong
 * @Date 2021/11/30 14:51
 * @Version 1.0
 * @Description
 */
public class GetTimeNow {
    public static String getTime(){
        DateFormat df3 = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.CHINA);
        String date3 = df3.format(new Date());
        DateFormat df7 = DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.CHINA);
        String time3 = df7.format(new Date());
        return date3+" "+time3;
    }
}
